ff_add_test_executable(
  NAME
    kernels-tests
  SRC_PATTERNS
    src/*.cc
  PRIVATE_INCLUDE 
    src/
  DEPS
    doctest
    utils-test-common
    kernels
    op-attrs
    cuda
    cudnn
    cudart
    cublas
)

set(FF_TEST_EXEC_NAME "kernels-tests")
add_custom_command(
  TARGET ${FF_TEST_EXEC_NAME} POST_BUILD
  COMMAND ${CMAKE_COMMAND} -DFF_TEST_EXEC_NAME=${FF_TEST_EXEC_NAME} -P ${CMAKE_CURRENT_LIST_DIR}/modify_test_commands.cmake
  DEPENDS ${FF_TEST_EXEC_NAME}
)
